﻿<Page
    x:Class="WinKee.Pages.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Page.Resources>
        <Style x:Key="SectionHeaderStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="FontSize" Value="32"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>
        <Style x:Key="ThanksUserName" TargetType="TextBlock">
            <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
            <Setter Property="Style" Value="{StaticResource BodyTextBlockStyle}"/>
            <Setter Property="FontSize" Value="26"/>
        </Style>
    </Page.Resources>
    
    <Grid x:Name="LayoutRoot">

        <Grid.ChildrenTransitions>
            <TransitionCollection>
                <EntranceThemeTransition/>
            </TransitionCollection>
        </Grid.ChildrenTransitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- TitlePanel -->
        <StackPanel Grid.Row="0" Margin="24,17,0,28">
            <TextBlock Text="WinKee" Style="{ThemeResource TitleTextBlockStyle}" Typography.Capitals="SmallCaps"/>
            <TextBlock Text="{Binding ApplicationVersion}" Style="{ThemeResource TitleTextBlockStyle}"/>
            <!--<TextBlock Text="about" Margin="0,12,0,0" Style="{ThemeResource HeaderTextBlockStyle}"/>-->
        </StackPanel>
        
        <Hub Grid.Row="1">
            <HubSection>
                <HubSection.Header>
                    <TextBlock Style="{StaticResource SectionHeaderStyle}">about</TextBlock>
                </HubSection.Header>
                <DataTemplate>
                    <ScrollViewer>
                        <StackPanel Margin="5">
                            <TextBlock Foreground="{StaticResource PhoneAccentBrush}" Style="{StaticResource GroupHeaderTextBlockStyle}">
                    Description
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    WinKee is a KeePass 2.x port for the Windows Phone 8.1 platform. It allows you to 
                    read existing KeePass databases protected by a password or a keyfile (or a combination of the two).
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    WinKee is an open-source project. You can find the complete source code at 
                    <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="https://winkee.codeplex.com/">CodePlex</Hyperlink>.
                            </TextBlock>
                            <TextBlock Foreground="{StaticResource PhoneAccentBrush}" Style="{StaticResource GroupHeaderTextBlockStyle}">
                    License
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    WinKee is covered by the Mozilla Public License 2.0.
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    You can find the complete text of the license at the following URL:
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}">
                    <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="https://winkee.codeplex.com/license">https://winkee.codeplex.com/license</Hyperlink>
                            </TextBlock>
                        </StackPanel>
                    </ScrollViewer>
                </DataTemplate>
            </HubSection>
            <HubSection>
                <HubSection.Header>
                    <TextBlock Style="{StaticResource SectionHeaderStyle}">third parties</TextBlock>
                </HubSection.Header>
                <DataTemplate>
                    <ScrollViewer>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    WinKee uses code and binaries provided by third parties.
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="http://keepass.info/">
                        KeePass
                    </Hyperlink>
                     - code ported directly from the original KeePass 2.x is used for reading the KeePass files.
                            </TextBlock>
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                    <Hyperlink Foreground="{StaticResource PhoneAccentBrush}" NavigateUri="https://github.com/onovotny/BouncyCastle-PCL">
                        Bouncy Castle PCL
                    </Hyperlink>
                     - code ported from the Bouncy Castle Portable Class Library project
                    is used to substitute cryptographic operation that are not directly available on the Windows Phone 8.1 platform.
                            </TextBlock>
                        </StackPanel>
                    </ScrollViewer>
                </DataTemplate>
            </HubSection>
            <HubSection>
                <HubSection.Header>
                    <TextBlock Style="{StaticResource SectionHeaderStyle}">thanks</TextBlock>
                </HubSection.Header>
                <DataTemplate>
                    <ScrollViewer>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Style="{StaticResource BodyTextBlockStyle}" Margin="0,10,0,0" TextWrapping="Wrap">
                                Special thanks goes out to users who helped this project on CodePlex:
                            </TextBlock>
                            <StackPanel Orientation="Vertical" Margin="0,10,0,0">
                                <TextBlock Style="{StaticResource ThanksUserName}">antxxxx</TextBlock>
                                <TextBlock Style="{StaticResource BodyTextBlockStyle}">For diagnosing and providing a patch for several issues affecting database decryption, for getting WinKee recognized on the official KeePass web site, and for providing feedback on features both new and old.</TextBlock>
                            </StackPanel>

                            <StackPanel Orientation="Vertical" Margin="0,10,0,0">
                                <TextBlock Style="{StaticResource ThanksUserName}">shivaq</TextBlock>
                                <TextBlock Style="{StaticResource BodyTextBlockStyle}">For simplifying a hundred lines of workaround code into a single line of solution. This properly resolved the issue of opening files with any file extension.</TextBlock>
                            </StackPanel>

                            <StackPanel Orientation="Vertical" Margin="0,10,0,0">
                                <TextBlock Style="{StaticResource ThanksUserName}">Thasaidon</TextBlock>
                                <TextBlock Style="{StaticResource BodyTextBlockStyle}">For reporting a very obscure navigation issue and then sticking around for beta testing and generally being nothing but helpful.</TextBlock>
                            </StackPanel>
                        </StackPanel>
                    </ScrollViewer>
                </DataTemplate>
            </HubSection>
        </Hub>
    </Grid>
</Page>
